<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>RestfulLinux: RFDevice.h文件参考</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">RestfulLinux
   &#160;<span id="projectnumber">1.0.0</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- 制作者 Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="annotated.html"><span>数据结构</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>全局定义</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">数据结构</a> &#124;
<a href="#define-members">宏定义</a> &#124;
<a href="#typedef-members">类型定义</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">RFDevice.h文件参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>设备操作接口封装  
<a href="#details">更多...</a></p>
<div class="textblock"><code>#include &lt;<a class="el" href="osDataType_8h_source.html">osAdaption/osDataType.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="RFDeviceDetails_8h_source.html">RFDeviceDetails.h</a>&gt;</code><br/>
</div>
<p><a href="RFDevice_8h_source.html">浏览该文件的源代码。</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
数据结构</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structLocationInfo.html">LocationInfo</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">位置信息定义  <a href="structLocationInfo.html#details">更多...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structRFDeviceConfig.html">RFDeviceConfig</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">设备配置信息定义  <a href="structRFDeviceConfig.html#details">更多...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structRFDeviceInfo.html">RFDeviceInfo</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">设备属性定义  <a href="structRFDeviceInfo.html#details">更多...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="define-members"></a>
宏定义</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="RFDevice_8h.html#a31e94f1a75e55e777a9271ad02f0e171">DEVICE_NAME_LEN_MAX</a>&#160;&#160;&#160;15</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="RFDevice_8h.html#a9a0595cbc9ab486fdc0dc82edbbe4f5b">DEVICE_DESC_LEN_MAX</a>&#160;&#160;&#160;127</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="RFDevice_8h.html#adc7052524e5e4b14dae9691bc70ee162">DEVICE_TAGLIST_LEN_MAX</a>&#160;&#160;&#160;63</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="RFDevice_8h.html#a4c3e4596a4079965b008f13658afadd0">DEVICE_ID_LEN_MAX</a>&#160;&#160;&#160;15</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="RFDevice_8h.html#a3b20e0198c2eafa93ca5b0c48f6db8a3">DEVICE_API_KEY_LEN_MAX</a>&#160;&#160;&#160;63</td></tr>
<tr><td colspan="2"><div class="groupHeader">设备信息更新项选择标识</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="RFDevice_8h.html#adda3539feb787aaffe0c6fd6871f9e96">DEVICEINFO_MASK_TITLE</a>&#160;&#160;&#160;0x0001</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="RFDevice_8h.html#aa27f1c71a41489022953fe8326f39ea8">DEVICEINFO_MASK_DESC</a>&#160;&#160;&#160;0x0002</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="RFDevice_8h.html#a816a485e3b0120a6ae402f62a1543bec">DEVICEINFO_MASK_PRIVATE</a>&#160;&#160;&#160;0x0004</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="RFDevice_8h.html#aea3967420653246266bf5c15ab9f4e9e">DEVICEINFO_MASK_TAGLIST</a>&#160;&#160;&#160;0x0008</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="RFDevice_8h.html#a90e50ca5b5a4a84493519eb2cf232678">DEVICEINFO_MASK_LOCATION</a>&#160;&#160;&#160;0x0010</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="RFDevice_8h.html#a8effad4c0d9279e504639724fc6739d4">DEVICEINFO_MASK_ALL</a>&#160;&#160;&#160;0xFFFF</td></tr>
<tr><td colspan="2"><h2><a name="typedef-members"></a>
类型定义</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a06cfed03743d6a078eeb63f3099fb151"></a><!-- doxytag: member="RFDevice.h::pLocationInfo" ref="a06cfed03743d6a078eeb63f3099fb151" args="" -->
typedef struct <a class="el" href="structLocationInfo.html">LocationInfo</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>pLocationInfo</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a77843adb5b61b3a25f333e27f729a897"></a><!-- doxytag: member="RFDevice.h::pRFDeviceConfig" ref="a77843adb5b61b3a25f333e27f729a897" args="" -->
typedef struct <a class="el" href="structRFDeviceConfig.html">RFDeviceConfig</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>pRFDeviceConfig</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acef653e9c34d25c797f478facf13033b"></a><!-- doxytag: member="RFDevice.h::pRFDeviceInfo" ref="acef653e9c34d25c797f478facf13033b" args="" -->
typedef struct <a class="el" href="structRFDeviceInfo.html">RFDeviceInfo</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>pRFDeviceInfo</b></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
函数</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="RFDevice_8h.html#a02926dbce65bd9880b03be1af5cbfa77">RFDevice_Create</a> (<a class="el" href="structRFDeviceConfig.html">RFDeviceConfig</a> *devConfig, int8 *deviceID)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">新增设备。设备创建成功后，用户应保存返回的设备ID，当下一次上线时， 无需重新调用设备创建接口，直接使用<a class="el" href="RFDevice_8h.html#a8c09fa856caf5347b63dafbf9ed1df4a">RFDevice_Init</a> 即可。 本接口包含<a class="el" href="RFDevice_8h.html#a8c09fa856caf5347b63dafbf9ed1df4a">RFDevice_Init</a> 的功能。  <a href="#a02926dbce65bd9880b03be1af5cbfa77"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="RFDevice_8h.html#a8c09fa856caf5347b63dafbf9ed1df4a">RFDevice_Init</a> (int8 *deviceID, int8 *masterKey)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">设备信息初始化，和<a class="el" href="RFDevice_8h.html#a02926dbce65bd9880b03be1af5cbfa77">RFDevice_Create</a> 接口只需调用其中一个。需要向云端 添加设备时用Create接口，其它情况用Init接口  <a href="#a8c09fa856caf5347b63dafbf9ed1df4a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="RFDevice_8h.html#a2adeb6c8fdf317ce85ac17a6a4cfa681">RFDevice_UpdateInfo</a> (<a class="el" href="structRFDeviceConfig.html">RFDeviceConfig</a> *devConfig, uint32 updateFlag)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">更新设备信息  <a href="#a2adeb6c8fdf317ce85ac17a6a4cfa681"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="RFDevice_8h.html#aa827474024c22d75e07df176c60acc07">RFDevice_View</a> (int8 *APIKey, <a class="el" href="structRFDeviceDetails.html">RFDeviceDetails</a> *details)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">查询设备，只限查询本设备  <a href="#aa827474024c22d75e07df176c60acc07"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="RFDevice_8h.html#ac52c59eec134c6877e8dde7b1b18ac02">RFDevice_FreeDetails</a> (<a class="el" href="structRFDeviceDetails.html">RFDeviceDetails</a> *details)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">执行<a class="el" href="RFDevice_8h.html#aa827474024c22d75e07df176c60acc07">RFDevice_View</a> 操作后，必须调用该接口释放空间  <a href="#ac52c59eec134c6877e8dde7b1b18ac02"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="RFDevice_8h.html#afefa76d28d4681972e9c99333b0bbf8e">RFDevice_Delete</a> (int8 *APIKey)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">从云端删除指定设备  <a href="#afefa76d28d4681972e9c99333b0bbf8e"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>详细描述</h2>
<div class="textblock"><p>设备操作接口封装 </p>
<p>Copyright (c), 2012~2016 iot.10086.cn All Rights Reserved</p>
<dl class="author"><dt><b>作者:</b></dt><dd>宋伟&lt;<a href="mailto:songwei1@iot.chinamobile.com">songwei1@iot.chinamobile.com</a>&gt; </dd></dl>
<dl class="date"><dt><b>日期:</b></dt><dd>2016/05/18 </dd></dl>
<dl class="version"><dt><b>版本:</b></dt><dd>1.0.0 </dd></dl>
<dl class="user"><dt><b>Revision History:</b></dt><dd>Date Author Revised.Ver Notes<br/>
 2015/5/18 SongWei 1.0.0 file created<br/>
 </dd></dl>
</div><hr/><h2>宏定义文档</h2>
<a class="anchor" id="a3b20e0198c2eafa93ca5b0c48f6db8a3"></a><!-- doxytag: member="RFDevice.h::DEVICE_API_KEY_LEN_MAX" ref="a3b20e0198c2eafa93ca5b0c48f6db8a3" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="RFDevice_8h.html#a3b20e0198c2eafa93ca5b0c48f6db8a3">DEVICE_API_KEY_LEN_MAX</a>&#160;&#160;&#160;63</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>API Key长度定义 </p>

</div>
</div>
<a class="anchor" id="a9a0595cbc9ab486fdc0dc82edbbe4f5b"></a><!-- doxytag: member="RFDevice.h::DEVICE_DESC_LEN_MAX" ref="a9a0595cbc9ab486fdc0dc82edbbe4f5b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="RFDevice_8h.html#a9a0595cbc9ab486fdc0dc82edbbe4f5b">DEVICE_DESC_LEN_MAX</a>&#160;&#160;&#160;127</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>设备描述信息长度定义 </p>

</div>
</div>
<a class="anchor" id="a4c3e4596a4079965b008f13658afadd0"></a><!-- doxytag: member="RFDevice.h::DEVICE_ID_LEN_MAX" ref="a4c3e4596a4079965b008f13658afadd0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="RFDevice_8h.html#a4c3e4596a4079965b008f13658afadd0">DEVICE_ID_LEN_MAX</a>&#160;&#160;&#160;15</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>云端分配的设备ID长度定义 </p>

</div>
</div>
<a class="anchor" id="a31e94f1a75e55e777a9271ad02f0e171"></a><!-- doxytag: member="RFDevice.h::DEVICE_NAME_LEN_MAX" ref="a31e94f1a75e55e777a9271ad02f0e171" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="RFDevice_8h.html#a31e94f1a75e55e777a9271ad02f0e171">DEVICE_NAME_LEN_MAX</a>&#160;&#160;&#160;15</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>设备名长度定义 </p>

</div>
</div>
<a class="anchor" id="adc7052524e5e4b14dae9691bc70ee162"></a><!-- doxytag: member="RFDevice.h::DEVICE_TAGLIST_LEN_MAX" ref="adc7052524e5e4b14dae9691bc70ee162" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="RFDevice_8h.html#adc7052524e5e4b14dae9691bc70ee162">DEVICE_TAGLIST_LEN_MAX</a>&#160;&#160;&#160;63</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>设备标签长度定义 </p>

</div>
</div>
<a class="anchor" id="a8effad4c0d9279e504639724fc6739d4"></a><!-- doxytag: member="RFDevice.h::DEVICEINFO_MASK_ALL" ref="a8effad4c0d9279e504639724fc6739d4" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="RFDevice_8h.html#a8effad4c0d9279e504639724fc6739d4">DEVICEINFO_MASK_ALL</a>&#160;&#160;&#160;0xFFFF</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>更新以上所有信息 </p>

</div>
</div>
<a class="anchor" id="aa27f1c71a41489022953fe8326f39ea8"></a><!-- doxytag: member="RFDevice.h::DEVICEINFO_MASK_DESC" ref="aa27f1c71a41489022953fe8326f39ea8" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="RFDevice_8h.html#aa27f1c71a41489022953fe8326f39ea8">DEVICEINFO_MASK_DESC</a>&#160;&#160;&#160;0x0002</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>更新设备描述信息 </p>

</div>
</div>
<a class="anchor" id="a90e50ca5b5a4a84493519eb2cf232678"></a><!-- doxytag: member="RFDevice.h::DEVICEINFO_MASK_LOCATION" ref="a90e50ca5b5a4a84493519eb2cf232678" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="RFDevice_8h.html#a90e50ca5b5a4a84493519eb2cf232678">DEVICEINFO_MASK_LOCATION</a>&#160;&#160;&#160;0x0010</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>更新设备位置信息 </p>

</div>
</div>
<a class="anchor" id="a816a485e3b0120a6ae402f62a1543bec"></a><!-- doxytag: member="RFDevice.h::DEVICEINFO_MASK_PRIVATE" ref="a816a485e3b0120a6ae402f62a1543bec" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="RFDevice_8h.html#a816a485e3b0120a6ae402f62a1543bec">DEVICEINFO_MASK_PRIVATE</a>&#160;&#160;&#160;0x0004</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>更新设备是否属于私有设备 </p>

</div>
</div>
<a class="anchor" id="aea3967420653246266bf5c15ab9f4e9e"></a><!-- doxytag: member="RFDevice.h::DEVICEINFO_MASK_TAGLIST" ref="aea3967420653246266bf5c15ab9f4e9e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="RFDevice_8h.html#aea3967420653246266bf5c15ab9f4e9e">DEVICEINFO_MASK_TAGLIST</a>&#160;&#160;&#160;0x0008</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>更新设备标签信息 </p>

</div>
</div>
<a class="anchor" id="adda3539feb787aaffe0c6fd6871f9e96"></a><!-- doxytag: member="RFDevice.h::DEVICEINFO_MASK_TITLE" ref="adda3539feb787aaffe0c6fd6871f9e96" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="RFDevice_8h.html#adda3539feb787aaffe0c6fd6871f9e96">DEVICEINFO_MASK_TITLE</a>&#160;&#160;&#160;0x0001</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>更新设备名 </p>

</div>
</div>
<hr/><h2>函数文档</h2>
<a class="anchor" id="a02926dbce65bd9880b03be1af5cbfa77"></a><!-- doxytag: member="RFDevice.h::RFDevice_Create" ref="a02926dbce65bd9880b03be1af5cbfa77" args="(RFDeviceConfig *devConfig, int8 *deviceID)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32 <a class="el" href="RFDevice_8h.html#a02926dbce65bd9880b03be1af5cbfa77">RFDevice_Create</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structRFDeviceConfig.html">RFDeviceConfig</a> *&#160;</td>
          <td class="paramname"><em>devConfig</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8 *&#160;</td>
          <td class="paramname"><em>deviceID</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>新增设备。设备创建成功后，用户应保存返回的设备ID，当下一次上线时， 无需重新调用设备创建接口，直接使用<a class="el" href="RFDevice_8h.html#a8c09fa856caf5347b63dafbf9ed1df4a">RFDevice_Init</a> 即可。 本接口包含<a class="el" href="RFDevice_8h.html#a8c09fa856caf5347b63dafbf9ed1df4a">RFDevice_Init</a> 的功能。 </p>
<dl class="params"><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">devInfo</td><td>需要新增设备的设备信息 </td></tr>
    <tr><td class="paramname">deviceID</td><td>返回设备ID。缓冲区传入前需初始化</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>返回:</b></dt><dd>参见<a class="el" href="OSAErrno_8h.html">OSAErrno.h</a> </dd></dl>

</div>
</div>
<a class="anchor" id="afefa76d28d4681972e9c99333b0bbf8e"></a><!-- doxytag: member="RFDevice.h::RFDevice_Delete" ref="afefa76d28d4681972e9c99333b0bbf8e" args="(int8 *APIKey)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32 <a class="el" href="RFDevice_8h.html#afefa76d28d4681972e9c99333b0bbf8e">RFDevice_Delete</a> </td>
          <td>(</td>
          <td class="paramtype">int8 *&#160;</td>
          <td class="paramname"><em>APIKey</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>从云端删除指定设备 </p>
<dl class="params"><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">APIKey</td><td>有权限进行删除操作的APIKey</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>返回:</b></dt><dd>参见<a class="el" href="OSAErrno_8h.html">OSAErrno.h</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ac52c59eec134c6877e8dde7b1b18ac02"></a><!-- doxytag: member="RFDevice.h::RFDevice_FreeDetails" ref="ac52c59eec134c6877e8dde7b1b18ac02" args="(RFDeviceDetails *details)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="RFDevice_8h.html#ac52c59eec134c6877e8dde7b1b18ac02">RFDevice_FreeDetails</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structRFDeviceDetails.html">RFDeviceDetails</a> *&#160;</td>
          <td class="paramname"><em>details</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>执行<a class="el" href="RFDevice_8h.html#aa827474024c22d75e07df176c60acc07">RFDevice_View</a> 操作后，必须调用该接口释放空间 </p>
<dl class="params"><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">details</td><td>传入View接口的设备详细信息指针 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a8c09fa856caf5347b63dafbf9ed1df4a"></a><!-- doxytag: member="RFDevice.h::RFDevice_Init" ref="a8c09fa856caf5347b63dafbf9ed1df4a" args="(int8 *deviceID, int8 *masterKey)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32 <a class="el" href="RFDevice_8h.html#a8c09fa856caf5347b63dafbf9ed1df4a">RFDevice_Init</a> </td>
          <td>(</td>
          <td class="paramtype">int8 *&#160;</td>
          <td class="paramname"><em>deviceID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8 *&#160;</td>
          <td class="paramname"><em>masterKey</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>设备信息初始化，和<a class="el" href="RFDevice_8h.html#a02926dbce65bd9880b03be1af5cbfa77">RFDevice_Create</a> 接口只需调用其中一个。需要向云端 添加设备时用Create接口，其它情况用Init接口 </p>
<dl class="params"><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">deviceID</td><td>设备创建时云端返回的ID </td></tr>
    <tr><td class="paramname">masterKey</td><td>云端项目的MasterKey</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>返回:</b></dt><dd>参考OSAErrno.h </dd></dl>

</div>
</div>
<a class="anchor" id="a2adeb6c8fdf317ce85ac17a6a4cfa681"></a><!-- doxytag: member="RFDevice.h::RFDevice_UpdateInfo" ref="a2adeb6c8fdf317ce85ac17a6a4cfa681" args="(RFDeviceConfig *devConfig, uint32 updateFlag)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32 <a class="el" href="RFDevice_8h.html#a2adeb6c8fdf317ce85ac17a6a4cfa681">RFDevice_UpdateInfo</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structRFDeviceConfig.html">RFDeviceConfig</a> *&#160;</td>
          <td class="paramname"><em>devConfig</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32&#160;</td>
          <td class="paramname"><em>updateFlag</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>更新设备信息 </p>
<dl class="params"><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">devConfig</td><td>需要更新设备的设备信息。 </td></tr>
    <tr><td class="paramname">updateFlag</td><td>指定需要更新的项，可同时更新多项内容。Flag指定的设备 信息项，需要在devConfig中正确填写</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>返回:</b></dt><dd>参见<a class="el" href="OSAErrno_8h.html">OSAErrno.h</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aa827474024c22d75e07df176c60acc07"></a><!-- doxytag: member="RFDevice.h::RFDevice_View" ref="aa827474024c22d75e07df176c60acc07" args="(int8 *APIKey, RFDeviceDetails *details)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32 <a class="el" href="RFDevice_8h.html#aa827474024c22d75e07df176c60acc07">RFDevice_View</a> </td>
          <td>(</td>
          <td class="paramtype">int8 *&#160;</td>
          <td class="paramname"><em>APIKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structRFDeviceDetails.html">RFDeviceDetails</a> *&#160;</td>
          <td class="paramname"><em>details</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>查询设备，只限查询本设备 </p>
<dl class="params"><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">APIKey</td><td>有权限查看设备的Key </td></tr>
    <tr><td class="paramname">details</td><td>返回设备详细信息</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>返回:</b></dt><dd>参见<a class="el" href="OSAErrno_8h.html">OSAErrno.h</a> </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全部</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>数据结构</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>文件</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>函数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>变量</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>枚举</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>枚举值</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>宏定义</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated at 2016年六月3日 星期五 09:08:32 for RestfulLinux by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
